@prefix-cls: material-updata;
@prefix-cls-upload: material-upload;

.@{prefix-cls} {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;

  &-conmpanyCardExtra {
    transform: rotate(90deg);
  }

  &-updateCollapse {
    background-color: #ffffff;

    .ant-collapse-item {
      border-bottom: none;
      background-color: #ffffff;
    }
  }

  // 保存按钮
  &-cardBodybtn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
    border-top: 1px dashed #cdcdcd;
  }

  // 时间轴样式
  &-TimelineStyle {
    .ant-timeline-item-last {
      .ant-timeline-item:last-child {
        .ant-timeline-item-tail {
          display: none;
        }
      }
    }

    // 时间icon下移
    .ant-timeline-item-head-custom {
      top: 17.5px;
    }

    // 时间icon之间的线条整体下移
    .ant-timeline-item-tail {
      top: 18px;
    }

    &-ColTitle {
      font-weight: 700;
      font-size: 17px;
      line-height: 35px;
    }

    &-ColState {
      font-weight: 600;
      font-size: 16px;
    }

    &-spanWeight {
      font-weight: 600;
      color: #3c3c3c;
    }

    &-spanLabel {
      color: #6e6e6e;
    }
  }

  // 时间轴样式
  &-tmplTimeline {
    width: 100%;
    padding: 10px 10px 0px;

    .ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,
    .ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content,
    .ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content {
      left: calc(50% - 121px);
      width: 50%;
    }

    .ant-timeline.ant-timeline-label .ant-timeline-item-label {
      width: calc(30% - 15px);
    }

    .ant-timeline.ant-timeline-label .ant-timeline-item-tail {
      left: 30%;
    }

    .ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {
      left: 30%;
    }

    .ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {
      border-left: 2px solid #f0f0f0;
    }

    .ant-timeline-item-content {
      // left: calc(50% - 122px);
      left: 30%;
      width: 70%;
      margin: 0px 0px 0px 15px;
      min-height: 80px;
    }

    .ant-timeline-item {
      padding: 0px;
    }

    /**
    * 邮编内容
    */
    &-contentRow {
      .ant-col {
        margin-bottom: 5px;
      }
    }

    /**
    * 左侧时间 日期
    */
    &-leftDateSpan {
      font-weight: 700;
    }

    &-leftHourSpan {
      color: #949494;
      font-size: 14;
    }

    &-contantLable {
      color: #818181;

      &-userInfoText {
        color: #3f3f3f;
      }
    }
  }

  // 抽屉列表
  &-Descriptions {
    .ant-descriptions {
      .ant-descriptions-item-label {
        width: 100px;
        white-space: nowrap;
      }

      .ant-descriptions-item-content {
        width: 210px;
      }
    }
  }

  &-updateCollapse {
    background-color: #ffffff;

    .ant-collapse-item,
    .ant-collapse-item-active {
      border-bottom: 0px !important;
    }

    .ant-divider-horizontal.ant-divider-with-text {
      margin: 0px;
    }

    .ant-divider-inner-text {
      font-weight: 600;
    }

    .ant-collapse-content > .ant-collapse-content-box {
      padding: 5px 40px 5px 10px;
    }

    .ant-collapse-item {
      border-bottom: none;
      background-color: #ffffff;

      .ant-collapse-header {
        padding: 6px 16px;
      }
    }
  }

  &-checkDrawer {
    .ant-drawer-mask {
      display: none;
    }

    .ant-drawer-content-wrapper {
      height: 280px !important;

      .ant-form-item {
        margin-bottom: 15px;
      }
    }
  }

  &-strutDetailDrawerBox {
    height: calc(100% - 280px);
  }

  &-allDetailDrawerBox {
    height: 100%;
  }
}

// 物料管理-详情页面-预览图片组件放置在div中
#custom-preview-container {
  .ant-image-preview-mask {
    position: absolute;
  }

  .ant-image-preview-wrap {
    position: absolute;
  }

  .ant-image-preview-operations-wrapper {
    position: absolute;

    .ant-image-preview-switch-right {
      right: 65px !important;
    }

    .ant-image-preview-switch-left {
      left: 344px !important;
    }
  }
}

// 物料管理-详情页面-去除双抽屉导致的位置偏移

.@{prefix-cls-upload} {
  height: 100%;

  &-download {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 70%;
    margin: auto;

    .ant-upload.ant-upload-drag {
      height: 200px;
    }
  }

  &-dragger {
    flex: 1;
  }

  &-upload-text {
    &-click {
      color: #1890ff;
      font-style: normal;
    }
  }

  &-tip-title {
    font-size: 14px;
    margin-top: 10px;
  }

  &-download-tem {
    color: #1890ff;
    margin-left: 10px;
    text-decoration: underline;
  }

  &-step {
    padding: 20px 0;
  }

  &-content {
    flex: auto;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    overflow: hidden;

    .MaterialModalTable {
      .ant-form {
        height: 100%;
        overflow: hidden;
        .ant-form-item {
          height: 100%;
          overflow: hidden;
          .ant-form-item-row {
            height: 100%;
            overflow: hidden;
            .ant-form-item-control {
              height: 100%;
              overflow: hidden;
              .ant-form-item-control-input-content {
                height: 100%;
                overflow: hidden;
                .ant-table-wrapper {
                  height: 100%;
                  overflow: hidden;
                }
              }
            }
          }
        }
      }
    }

    &-body {
      height: 100%;
      padding-top: 1rem;
    }
  }

  &-card {
    width: 100%;
    border: 1px solid #e9e9e9;
    display: flex;
    margin-bottom: 1rem;
    min-height: 33%;

    &-icon {
      width: 15%;
      border-right: 1px solid #e9e9e9;
      background: #f5f5f5;
      padding: 0.75rem;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 3rem;
      color: #cccccc;
    }

    &-info {
      flex: auto;
      padding: 0.75rem;

      &-title {
        margin-bottom: 0.75rem;
        font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
        font-weight: 700;
        color: #666666;
      }

      &-describe {
        margin-bottom: 0.75rem;
        color: #999999;
        font-size: 0.75rem;
      }
    }

    &-error {
      flex: auto;
      padding: 0.75rem;
      display: flex;
      flex-direction: column;

      &-title {
        margin: 0.75rem 0rem;
        font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
        font-weight: 700;
        color: #666666;
        flex: auto;
      }
    }
  }

  &-sucess {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    &-wraper {
    }

    &-icon {
      font-size: 7rem;
      color: #52c41a;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    &-title {
      font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
      font-weight: 700;
      color: #666666;
      font-size: 1rem;
      text-align: center;
      margin-top: 0.75rem;
    }

    &-info {
      font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
      margin-top: 0.75rem;
      color: #999999;
    }
  }

  &-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.MaterialModalTable {
  flex: auto;
  height: 100%;
  overflow: hidden;

  .ant-table {
    margin: 0 !important;

    .double-row {
      td {
        background: #fff;
      }
    }

    .default-row {
      td {
        background: #fafafa;
      }
    }
  }

  .ant-pagination {
    margin: 0 !important;
    padding: 12px 0 !important;
  }

  .ant-form-item {
    margin: 0;
  }
}

.materialBatchImportCls {
  display: none;
}

.bathModalFormStyle {
  .ant-form {
    .ant-form-item {
      .ant-row {
        .ant-col {
          .ant-form-item-control-input {
            height: 100%;
            overflow: hidden;
          }
        }
      }
    }
  }
}
